package quizman.domain;
import java.sql.Date;
import java.util.List;

public class Quiz {
	private String Name;
	private List <Question> Questions;
	private int length = 0;
	private Date startTime;
	private Date endTime;
	
	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public Quiz(String name)
	{
		this.Name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return Name;
	}

	/**
	 * @param questions the questions to set
	 */
	public void setQuestions(List <Question> questions) {
		Questions = questions;
	}

	/**
	 * @return the questions
	 */
	public List <Question> getQuestions() {
		return Questions;
	}
	
	public Date getStart() {
		return startTime;
	}
	
	public Date getFinish() {
		return endTime;
	}
}
